// pages/balanceDetail/balanceDetail.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
      detailData:[
        {type:'支出',money:'- 99999.99',incident:'订单分润',date:'2018.08.08',state:0},
        {type:'收入',money:'+ 99999.99',incident:'提现',date:'2018.08.08',state:1},
        {type:'支出',money:'- 99999.99',incident:'充值',date:'2018.08.08',state:0},
        {type:'支出',money:'- 99999.99',incident:'订单分润',date:'2018.08.08',state:0},
        {type:'收入',money:'+ 99999.99',incident:'提现',date:'2018.08.08',state:1},
        {type:'支出',money:'- 99999.99',incident:'充值',date:'2018.08.08',state:0},
        {type:'支出',money:'- 99999.99',incident:'订单分润',date:'2018.08.08',state:0},
        {type:'收入',money:'+ 99999.99',incident:'提现',date:'2018.08.08',state:1},
        {type:'支出',money:'- 99999.99',incident:'充值',date:'2018.08.08',state:0},
        {type:'支出',money:'- 99999.99',incident:'订单分润',date:'2018.08.08',state:0},
        {type:'收入',money:'+ 99999.99',incident:'提现',date:'2018.08.08',state:1},
        {type:'支出',money:'- 99999.99',incident:'充值',date:'2018.08.08',state:0},
        {type:'支出',money:'- 99999.99',incident:'订单分润',date:'2018.08.08',state:0},
        {type:'收入',money:'+ 99999.99',incident:'提现',date:'2018.08.08',state:1},
        {type:'支出',money:'- 99999.99',incident:'充值',date:'2018.08.08',state:0}
      ],
      Startdate:'开始时间',
      endDate:'结束时间',
      startDateState: false,
      endDateState: false

  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },
  bindStartDateChange: function (e) {
    console.log('picker发送选择改变，携带值为', e.detail.value)
    this.setData({
      Startdate: e.detail.value,
      startDateState: true
    })
  },
  bindEndDateChange: function (e) {
    console.log('picker发送选择改变，携带值为', e.detail.value)
    this.setData({
      endDate: e.detail.value,
      endDateState: true
    })
  },
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})